Skip to content

feat: add model provenance tracking across plans and audits#21

Draft
jhweb wants to merge 10 commits intomainfrom
planning-auto-plus
Draft

feat: add model provenance tracking across plans and audits#21
jhweb wants to merge 10 commits intomainfrom
planning-auto-plus

Conversation

@jhweb
Copy link
Copy Markdown
Collaborator

@jhweb jhweb commented May 4, 2026

Summary

  • add a configurable provenance block in config/hub_config.yaml and wire it into runtime config parsing (braindrain/config.py, braindrain/types.py)
  • add provenance runtime helpers/tools in braindrain/server.py for effective model/mode resolution and append-only model trace logging
  • extend scripts/daily_plan_audit.py to stamp report frontmatter with provenance metadata (created_by_model, created_at, last_modified_by_model, last_modified_at, cursor_mode, subagent_models_used)
  • add provenance model/mode lines to generated planning artifacts (master-plan.md, next-actions.md, plan-task-board.md)
  • update planner/ruler templates with provenance footer/metadata policy guidance
  • harden Cursor stop observe hook template by suppressing stdout/stderr noise to avoid hook JSON parse regressions
  • update docs/changelog for .env.dev / .env.prod operational paths and provenance controls

Files touched

  • braindrain/server.py
  • braindrain/config.py
  • braindrain/types.py
  • config/hub_config.yaml
  • scripts/daily_plan_audit.py
  • config/templates/ruler/RULES.md
  • config/templates/agents/coordinator.md
  • config/templates/agents/daily-plan-auditor.md
  • config/templates/cursor/hooks/on-stop-observe.sh
  • README.md
  • CHANGELOG.md
  • tests under tests/test_plan_auditor_master.py and tests/test_workspace_primer_hooks.py

Test plan

  • PYTHONPATH=. pytest tests/test_plan_auditor_master.py tests/test_workspace_primer_hooks.py tests/test_provenance_config.py
  • run dry audit refresh with explicit model/mode flags
  • verify generated report frontmatter contains provenance fields
  • verify generated master/next-actions artifacts include model footer line

jhweb and others added 10 commits April 21, 2026 18:55
…d snapshot

Improve LivingDash snapshot detection so the UI shows BrainDrain MCP branding, reports the repository default branch, and generates a meaningful Braindrain repo brief with moving-part context.

Made-with: Cursor
…undary

Move LivingDash runtime data and secrets to .braindrain/ldash with legacy migration support, and document the storage split so .ldash can remain shareable scaffold code.

Made-with: Cursor
- Updated configuration handling for Codex CLI to prioritize TOML files over JSON.
- Introduced a new LivingDash sidecar for improved UI and runtime state management.
- Added tests for Codex TOML detection and installer defaults.
- Updated .gitignore to include new log and documentation directories.

Made-with: Cursor - EC3
Add a daily-gated Cursor stop hook and report generator to audit plan execution status with overlap/gap findings so planning drift is visible every day. This also updates hook docs and tests to keep deployment behavior verifiable.

Made-with: Cursor
Enforce strict explicit-owner markers for audit ownership detection, ignore legacy .devdocs plan sources, and generate a daily plan task-board markdown table to keep active work tracking up to date.

Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify that daily planning audit outputs live under .braindrain/plan-reports and document explicit owner marker formats used by the audit workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ueue

- Extend daily_plan_audit with plan frontmatter, env-based default owner,
  IDE-tagged discovery, plan cards, master-plan mirror + drift, next-actions
- Document new report outputs in README
- Bump audit schema to 1.1 in tests

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Add configurable provenance settings and propagate model/date metadata through plan audit outputs and agent templates so planning runs can be traced by model and cursor mode. This also hardens the observe stop-hook output contract to avoid hook JSON parsing regressions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jhweb jhweb changed the title Unify subagent templates and planning audit flow feat: add model provenance tracking across plans and audits May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant